#!/bin/bash
#禁止系统发送更新推送
sudo sed -i "s/1/0/g" /etc/apt/apt.conf.d/10periodic
#禁止系统发送错误报告
sudo apt-get purge apport -y

#修改隐藏任务栏及桌面图标的文件夹名称
mv /usr/share/gnome-shell/extensions/desktop-icons@csoriano/ /usr/share/gnome-shell/extensions/bak.desktop-icons@csoriano/
#mv /usr/share/gnome-shell/extensions/hidetopbar@mathieu.bidon.ca/ /usr/share/gnome-shell/extensions/bak.hidetopbar@mathieu.bidon.ca/
mv /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/ /usr/share/gnome-shell/extensions/bak.ubuntu-appindicators@ubuntu.com/
mv /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/ /usr/share/gnome-shell/extensions/bak.ubuntu-dock@ubuntu.com/

#修改背景图名称
su tuners -c"sh /home/tuners/TN9100-CV3.0/updatebackground.sh"
#查看
#gnome-extensions list


#echo "1"
#gnome-extensions disable ubuntu-dock@ubuntu.com
#mv /usr/share/gnome-shell/extensions/desktop-icons@csoriano /usr/share/gnome-shell/extensions/bak.desktop-icons@csoriano
#echo "2"
 #参考链接https://blog.csdn.net/weixin_42573248/article/details/102822165

# 隐藏topbar https://gitee.com/mirrors_mlutfy/hidetopbar.gitee

#重启 gnome-shell-extension-tool -r hidetopbar@mathieu.bidon.ca
#启用 gnome-shell-extension-tool -e hidetopbar@mathieu.bidon.ca
#禁用 gnome-shell-extension-tool -d hidetopbar@mathieu.bidon.ca

#

#gnome-extensions enable hidetopbar@mathieu.bidon.ca
#echo "3"
#gnome-extensions disable desktop-icons@csoriano
#echo "4"
#gsettings set org.gnome.desktop.background picture-uri "file:/home/tuners/adapterClient/大屏适配器背景.png"
#echo "5"
#
#gnome-extensions info ubuntu-dock@ubuntu.com
#echo "6"
#gnome-extensions info hidetopbar@mathieu.bidon.ca
#echo "7"
#gnome-extensions info desktop-icons@csoriano
#echo "8"